From 28c8245ab010c2933d171a545817832a0ed0d451 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Fri, 24 Feb 2006 17:50:20 +0100 Subject: [PATCH] Default minimum number of receive buffers queued by netfront is now 64, not 8. Signed-off-by: Keir Fraser --- linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c index 10165268c6..8f1c871e57 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c @@ -114,6 +114,7 @@ struct netfront_info /* Receive-ring batched refills. */ #define RX_MIN_TARGET 8 +#define RX_DFL_MIN_TARGET 64 #define RX_MAX_TARGET NET_RX_RING_SIZE int rx_min_target, rx_max_target, rx_target; struct sk_buff_head rx_batch; @@ -1102,8 +1103,8 @@ static int create_netdev(int handle, struct xenbus_device *dev, spin_lock_init(&np->rx_lock); skb_queue_head_init(&np->rx_batch); - np->rx_target = RX_MIN_TARGET; - np->rx_min_target = RX_MIN_TARGET; + np->rx_target = RX_DFL_MIN_TARGET; + np->rx_min_target = RX_DFL_MIN_TARGET; np->rx_max_target = RX_MAX_TARGET; init_timer(&np->rx_refill_timer); -- 2.30.2